import java.util.PriorityQueue;

public class Demo1 {
    public static void main(String[] args) {
        PriorityQueue<Integer>priorityQueue=new PriorityQueue<>();  //默认是小根堆
        priorityQueue.offer(20);
        priorityQueue.offer(10);
        priorityQueue.offer(2);
        System.out.println(priorityQueue.peek());
        PriorityQueue<Student> priorityQueue1=new PriorityQueue<>();
        priorityQueue1.offer(new Student());
    }
}
